package cn.com.liuwenquan.flex.control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import cn.com.liuwenquan.flex.events.LoginEvent;
	import cn.com.liuwenquan.flex.business.commands.LoginCommand;
	import cn.com.liuwenquan.flex.events.CustomerEvent;
	import cn.com.liuwenquan.flex.business.commands.CustomerCommand;
	
    /**
    * front controller将Event映射到Command
    * */
	public class ControllerList extends FrontController
	{
		public function ControllerList()
		{
			super();
			addCommand(LoginEvent.LOGIN_EVENT,LoginCommand);
			addCommand(CustomerEvent.CUSTOMER_EVENT,CustomerCommand);
		}
		
	}
}